import { instance } from "./axios"

export function getAllGood(data) { //获取商品
    return instance({
        url: "/getAllGood",
        method: "post",
        params: data
    })
}
export function addGood(data) { //增加商品
    return instance({
        url: "/addGood",
        method: "post",
        params: data
    })
}
export function editGood(data) { //修改商品
    return instance({
        url: "/editGood",
        method: "post",
        params: data
    })
}
export function delGood(data) { //删除商品
    return instance({
        url: "/deleteGood",
        method: "post",
        params: data
    })
}
export function AddImageMessage(data) { //删除商品
    return instance({
        url: "/addImageMessage",
        method: "post",
        params: data
    })
}
export function FillGoods(data) { //删除商品
    return instance({
        url: "/addGoodNum",
        method: "post",
        params: data
    })
}